package cn.lhjl.day05;

public class Student {
    private String name;
    private int id;
    static String room;
    private static int count;
    static{
        room="10";
        count=20;
        System.out.println(room+count);
    }

    public static int getCount() {
        return count;
    }

    public static void setCount(int count) {
        Student.count = count;
    }

    public Student() {
        this.id = ++count;
    }

    public Student(String name) {
        this.name = name;
        this.id=++count;
    }

    public static String getRoom() {
        return room;
    }

    public static void setRoom(String room) {
        Student.room = room;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getID() {
        return id;
    }

    public void setID(int ID) {
        this.id = ID;
    }
    public void show(){
        System.out.println("show");
    }
}
